package com.kaibes.module.security.api;

import java.util.List;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.kaibes.module.security.entity.Role;
import com.kaibes.module.security.service.RoleService;
import com.kaibes.web.api.ResponseApi;
import com.kaibes.web.response.ResponseFactory;

@RestController
@RequestMapping("/roles")
public class RoleApi extends ResponseApi<Role, RoleService> {
	
	@GetMapping("/list")
	public ResponseEntity<List<Role>> list() {
		return ResponseFactory.get(service.list(), "获取角色数据成功", "获取角色数据失败");
	}
	
}
